package com.huike.common.config;

import com.huike.common.core.domain.entity.SysUser;

public class BaseContext {

    public static ThreadLocal<SysUser> threadLocal = new ThreadLocal<>();
    public static void setCurrentUser(SysUser sysUser) {
        threadLocal.set(sysUser);
    }

    public static SysUser getCurrentUser() {
        return threadLocal.get();
    }

    public static void removeCurrentUser() {
        threadLocal.remove();
    }

}
